import request from '@/utils/request'

/* 查询 关键工序施工情况监控-首页
* @query :{fid: ''}
* */
export function keyCheckTableMonitoring(query) {
  return request({
    url: '/gcxt/report/keyCheckTableMonitoring',
    method: 'post',
    timeout: 0,
    data: query
  })
}

/* 查询  关键工序施工情况监控-批次报验情况
* @query :{buildingId: ''}
* */
export function getKeyChecktableInspection(query) {
  return request({
    url: '/gcxt/report/getKeyChecktableInspection',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  关键工序施工情况监控-角色验收情况
* @query :{buildingId: '', checktableId: ''}
* */
export function getKeyChecktableRole(query) {
  return request({
    url: '/gcxt/report/getKeyChecktableRole',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  工程施工整改
* @query :{projectId: ''}
* */
export function getConstruRectification(query) {
  return request({
    url: '/gcxt/report/getConstruRectification',
    method: 'get',
    timeout: 0,
    params: query
  })
}

/* 查询  获取楼栋对象验收记录情况
* @query :{buildingId: '', checkTableId: '', objectId : ''}
* */
export function getInspectionRecord(query) {
  return request({
    url: '/gcxt/report/getInspectionRecord',
    method: 'post',
    timeout: 0,
    data: query
  })
}

export function getBuildingProcessSchedule(query) {
  return request({
    url: '/gcxt/report/getBuildingProcessSchedule',
    method: 'get',
    params: query
  })
}
